package net.tngou.util;

import java.io.File;
import java.util.Collection;

import org.apache.commons.configuration2.Configuration;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.filefilter.FileFilterUtils;
import org.apache.commons.io.filefilter.IOFileFilter;

public class FileUtil {
	private static String path;
	static {
	  Configuration config = ConfigurationUtil.config("info.properties");
	  path=config.getString("path");
	}
	
	public static void main(String[] args) {
		
//		Collection<File> listFiles = FileUtils.listFiles(new File(path), FileFilterUtils.suffixFileFilter("html"),true);
		Collection<File> listFiles=FileUtils.listFiles(new File("C:\\"),null,true);
		System.err.println(listFiles.size());
		//		for (File file : listFiles) {
//            System.out.println(file.getName());
//        }
	}
}
